package com.yinhai.ta404.core.security.service;

import com.yinhai.ta404.core.security.vo.BaseResourceVo;
import com.yinhai.ta404.core.security.vo.RestUrlVo;

import java.util.List;
import java.util.Map;
import java.util.Set;

public interface ITaResourceReadService {
	List<BaseResourceVo> queryResourceWithRoleId(String roleId);

	List<BaseResourceVo> queryResourceEffectiveWithRoleId(String roleId);

	List<BaseResourceVo> queryResourceEffectiveWithRoleIds(List<String> roleIds);

	List<BaseResourceVo> queryResourceEffectiveWithUserId(String userId);

	List<BaseResourceVo> queryResourceNoLogin();

	List<BaseResourceVo> queryResourceLogin();

	boolean isAloneUiAuthorityPolicy(String resourceId);

	Set<String> queryUrlWithResourceIds(Set<String> resourceIds);

	List<BaseResourceVo> queryIChildResources(String resourceId);


	Map<String, Set<RestUrlVo>> queryBtnInfoWithRestUrl(List<String> resourceIdList, List<String> excludeBtnId);
}
